@import "@/common/constants/StyleConst.scss";

.contract-person {
  &::before {
    box-shadow: unset;
  }

  .contract-person-title {
    font-weight: 700;
    position: relative;
    height: 27px;
    min-height: 27px;
    font-size: 14px;
    color: $color-theme-navy;
    background-color: $color-theme-lightgrey;
    padding: 0 10px 0 14px;
    border-radius: unset;

    .title-container {
      position: absolute;
      right: 40px;

      .title-btn {
        min-width: unset;
        margin-left: 16px;
      }
    }
  }

  ::v-deep .v-expansion-panel-content__wrap {
    padding: 0;

    .v-expansion-panel::before {
      box-shadow: unset;
    }
  }

  .contract-list {
    width: calc(100% - 16px);
    margin: 0 auto;

    .active {
      border: 2px solid $color-theme-orange !important;
      border-radius: 8px;
      background-color: $color-theme-lightgrey;
    }

    .contract-list-item {
      display: inline-block;
      border: unset;
      border-radius: 8px;

      &:not(:first-child)::after {
        opacity: 0;
      }

      &:not(.active) {
        .contract-title {
          border-radius: 8px;
        }
      }

      .contract-title {

        min-height: 48px;
        background-color: $color-theme-lightgrey;

        &.v-expansion-panel-header--active {
          background-color: $color-bg-white;
        }

        .contract-img {
          float: left;
          height: 30px;
          width: 30px;
          max-width: 30px;
          max-height: 30px;
          margin-right: 20px;
        }

        h3,
        p {
          line-height: 22px;
          font-size: 12px;
        }
      }

    }

  }

  .contract-list-item-content {
    border-top: 2px solid $color-theme-orange;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    box-shadow: unset;

    :deep .v-card__title {
      height: 28px;
      background-color: $color-theme-lightgrey;

      .contract-content-title {
        height: 28px;
        font-weight: 700;
        color: $color-theme-grey;

      }

      .contract-content-title-btn {
        min-width: unset;
      }
    }

    :deep .item-form {
      thead {
        th {
          font-size: 14px;
          color: $color-theme-grey;
          font-weight: 700;
          height: 40px;
        }
      }

      tbody {
        td {
          font-size: 12px;
          color: $color-theme-grey;
          height: 40px;
        }
      }
    }
  }

  // info 里面的内容
  .contract-info-content {
    width: calc(100% - 16px);
    margin: 8px auto;
    background-color: $color-theme-lightgrey;
    padding: 16px;
    border-radius: 8px;
    font-size: 12px;
    color: $color-theme-grey;
    text-align: left;
  }

  .contract-item {
    font-size: 14px;
    height: 28px;
    color: $color-theme-grey;
    font-weight: 700;
    background-color: $color-theme-lightgrey;
  }
}